set method

The set method command allows the user to select the fitting method to be used when calling the fit command. The following methods are available:

     NAME         DESCRIPTION
     ----         -----------
     ls_reg       least square linear regression (2 parameters)
     lad_reg      least absolute deviation linear regression (2 parameters)
     ls_fit       general least square linear fit using QR decomposition
     svd_fit      general least square linear fit using singular value
                   decomposition
     ml_fit       general least square nonlinear fit using
                   Marquardt-Levenberg method

Among them, only ml_fit and ls_fit depends on iteration and adjust.

For all methods except lad_reg, the value of χ2 will be put in the scalar constant chi2. In the case of lad_reg, will contain the average absolute deviation.

set method method

set method svd

fit, set iteration, set function